#使用智谱大模型
from langchain_openai import ChatOpenAI

from dotenv import load_dotenv
load_dotenv()

text = "大模型是什么？"
llm = ChatOpenAI(
    temperature=0.6,
    model="glm-4.5",
    openai_api_key="c515d93f2ca142aba0ff32b84fcf42c5.L1uZEEvSkLdllJtx",
    openai_api_base="https://open.bigmodel.cn/api/paas/v4/"
)


res = llm.invoke(text)

print(res)